package fpzhan.plane.program.describe;

import fpzhan.plane.program.compose.CodeBlockCompose;
import fpzhan.plane.program.connect.CodeBlockConnect;

public class CheckParamForLose<T extends CodeBlockCompose,E extends CodeBlockConnect> {

    private CheckParamForAdd<T,E> checkAdd ;

    public CheckParamForLose(T chainCodeBlockCompose, E chainCodeBlockConnect) {
        this.checkAdd = new CheckParamForAdd(chainCodeBlockCompose,chainCodeBlockConnect);
    }

    public CheckParamForAdd<T,E> lose(String... loses){
        this.checkAdd.getCompose().setLoses(loses);
        return this.checkAdd;
    }

    public CodeBlockComment<T,E> addc(String... adds){
        this.checkAdd.getCompose().setAdds(adds);
        return this.checkAdd.getComment();
    }

    public CodeBlockComment<T,E> losec(String... loses){
        this.checkAdd.getCompose().setLoses(loses);
        return this.checkAdd.getComment();
    }

    public CodeBlockComment<T,E> none(){
        return this.checkAdd.getComment();
    }
}
